package mk.jug.academy.testing.factory;

import java.util.UUID;

import mk.jug.academy.model.Comment;
import mk.jug.academy.model.CommentStatus;


/**
 * Factory for creating instances for test purposes.
 *
 * @author Ice.Penov
 */
public final class CommentTestFactory {
	
	/** No instantiation. Static usage only. */
	private CommentTestFactory() {;}
	
	/** Creates a random {@link Comment} instance, for testing purposes */
	public static Comment createComment() {
		Comment comment = new Comment();
		comment.setContent("content" + UUID.randomUUID());
		comment.setFacebookUserId(UUID.randomUUID().toString());
		comment.setStatus(CommentStatus.PUBLISHED);
		comment.setAuthorName("displayName" + UUID.randomUUID());
		comment.setContentID(new Long(1));
		return comment;
	}
	
	/** Creates a random {@link Comment} instance, for testing purposes */	
	public static Comment createComment(Long contentID) {
		Comment comment = createComment();
		comment.setContentID(contentID);
		return comment;
	}

}